package world;

import owg.util.Calc;
import audio.Audio;

public class Sound{
	public static void play(String s){
		Audio.getClip(s).play();
	}
	
	public static void playPitched(String s){
		playPitched(s, .05);
	}
	
	public static void playPitched(String s, double rand){
		Audio.getClip(s).setSpeed(null, 1 + Calc.rangedRandom(rand));
		play(s);
	}
	
}
